// 导入hash路由 as 起个别名
import {HashRouter as Router,NavLink} from 'react-router-dom'
// 导入创建好的路由
import RouterView from './router';
// app
function App() {
  return (
  <Router>
    <NavLink to="">首页</NavLink> | 
    <NavLink to={{pathname:'/about'}}>关于</NavLink> | 
    <NavLink to={{pathname:'/produce/abc'}}>产品Abc</NavLink> | 
    <NavLink to="/produce/123">产品123</NavLink> | 
    <NavLink to="/admin/">admin</NavLink> | 
    <RouterView></RouterView>
  </Router> );
}

export default App;